package cc.geguo.config;

import com.opensymphony.xwork2.ActionSupport;

import cc.geguo.data.User;

/**
 * Created by 13687 on 2017/1/8.
 */
public class UserAction extends ActionSupport {
	private User user;

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String login(){
		 System.out.println("login");
		 return SUCCESS;
	 }

	 public String register(){
		 System.out.println(user.name);
		 System.out.println(user.age);
		 System.out.println(user.birth);
		 System.out.println("register");
	 	return SUCCESS;
	 }

}
